<template lang="html">
    <div class="">
        <mt-cell-swipe
        title="text"
        :right="buttons">

        </mt-cell-swipe>
    </div>
</template>

<script>
import {
	CellSwipe
} from 'mint-ui';
export default {
	methods: {
		deleteBtn() {
			console.log('delete');
		},
		share() {
			console.log('share');
		}
	},
	data() {
		return {
			buttons: [{
				content: '删除',
				style: {
					background: 'blue',
					color: '#fff'
				},
				handler: () => this.deleteBtn()
			}, {
				content: '分享',
				style: {
					background: 'red',
					color: '#fff'
				},
				handler: () => this.share()
			}]
		}
	}
}
</script>

<style lang="css">
</style>
